package practice5;

public class Square extends Rectangle {
	public Square(){
		
	}
	
	public Square(double side){
		length = side;
		width = side;
	}
	
	public Square(double side, String color, boolean filled){
		length = side;
		width = side;
		this.color = color;
		this.filled = filled;
	}
	
	public double getSide(){
		return width;
	}
	
	public void setWidth(double side){
		width = side;
	}
	
	public void setLength(double side){
		length = side;
	}
	
	public String toString(){
    	return "Square[Shape[ color = " + color + ", filled is " + filled +"], Area = " + getArea() + ", Perimeter = " + getPerimeter() + "]";
    }

}
